home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The 640 MEG Shareware Studio 2
/
The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO
/
os2
/
pccts.zip
/
TEST.C
< prev
next >
Wrap
C/C++ Source or Header
|
1992-12-08
|
411b
|
19 lines
#include <stdio.h>
/*
* test for rexpr().
* To make this test:
* cc -o rexpr test.c rexpr.c
* Then from command line type:
* rexpr r string
* where r is the regular expression that decribes a language
* and string is the string to verify.
*/
main(argc,argv)
int argc;
char *argv[];
{
if ( argc!=3 ) fprintf(stderr,"rexpr: expr s\n");
else printf("%d\n", rexpr(argv[1], argv[2]));
}